package com.eastedu.model.basic;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * The type Resource file.
 *
 * @author yemao
 */
@Data
public class ResourceFile {

    @JsonIgnore
    @Schema(hidden = true)
    private String id;
    @JsonIgnore
    @Schema(hidden = true)
    private String basicResourceId;
    private String fileId;
    private long size;
    private String md5;
    private String fileName;
    private String extension;
    private String downloadUrl;
    private String previewUrl;
    private long duration;

    @Schema(description = "是否加密")
    private Boolean encryption;

    @JsonIgnore
    @Schema(hidden = true)
    private Long createTime;

    @JsonIgnore
    @Schema(hidden = true)
    private Long updateTime;
}
